﻿using UnityEngine;
using System.Collections;

public class MiniGameSpawner : MonoBehaviour {
	public GameObject[] MiniGames;

	// Use this for initialization
	void Start () {
		SpawnRandomMiniGame ();

	}
	public void SpawnRandomMiniGame()
	{
		if (MiniGames.Length > 0)
						Instantiate (MiniGames [Random.Range (0, MiniGames.Length)]);
				else
						Debug.LogWarning ("No MiniGames Available to Spawn");
		
	}
	// Update is called once per frame
	void Update () {
	
	}
}
